const Router = require('koa-router')
const router = new Router({
  prefix: '/api/v1',
})

const controllers = require('../controllers')

router.get('/news', controllers.news.create)
router.get('/user', controllers.user.list)
router.get('/user/:id', controllers.user.one)
router.post('/user/add', controllers.user.create)

module.exports = router
